﻿using System.Windows;
using System.Windows.Input;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Xaml.Interactivity;

namespace KinonekoSoftware.Studio.Resources.Behaviors
{
    public class NestedListBoxScrollingBehavior : Behavior<ListBox>
    {
        protected override void OnAttached()
        {
            AssociatedObject.PointerWheelChanged += OnPreviewMouseWheel;
            base.OnAttached();
        }

        protected override void OnDetaching()
        {
            AssociatedObject.PointerWheelChanged -= OnPreviewMouseWheel;
            base.OnDetaching();
        }

        private void OnPreviewMouseWheel(object sender, PointerWheelEventArgs e)
        {
        }
    }
}